/*
 * @Author: 胡晓星
 * @Date: 2024-09-09 17:45:39
 * @LastEditors: 胡晓星
 * @LastEditTime: 2024-09-14 15:12:13
 * @FilePath: \src\views\player\team\api.js
 * @Description:
 */

import { request } from '@/utils'

export default {
  read: (params = {}) => request.get('/player/getAllTeams', {
    params
  }),
  create: data => request.post('/player/addTeam', data),
  delete: id => request.delete(`/player/removeTeam/${id}`),
  update: data => request.patch(`/player/updateTeam/${data.id}`, data),
  // resetPwd: (id, data) => request.patch(`/user/password/reset/${id}`, data),
}
